//
//  BQMyCarTool.h
//  BeeQuick
//
//  Created by mac on 16/11/22.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BQHomeGoodModel.h"

@interface BQMyCarTool : NSObject

+ (instancetype)shareMyCar;

//添加一个商品
- (void)addGoods:(BQHomeGoodModel *)model;


//删除一个商品
- (void)removeGoods:(BQHomeGoodModel *)model;

//返回总价格
- (float)showTotalPrice;

//返回所有的购买商品数量
- (NSInteger)showTotalNum;

@property(strong,nonatomic)NSMutableArray<BQHomeGoodModel *> *goodArrM;

//情况全部购物车商品

- (void)clearMyCar;


//返回用户购物车里面实际上选了的数量
//- (NSInteger)showNumWantToBuy;
//购物车里面实际上要买的种类
//- (NSInteger)showCategoryNumWantToBuy;



@property(strong,nonatomic)NSMutableArray<BQHomeGoodModel *>*CurrentGoodArrM;
//除去一种类型的数据
- (void)deleteOneCategory:(BQHomeGoodModel*)model;

//添加一种类型的数据
- (void)addOneCategory:(BQHomeGoodModel*)model;


//商品是否被全选
- (BOOL)isAllSelect;

//刷新购物车
- (void)reloadMyCarList;
@end
